<?php
class robot_pdo{

	public function __construct($host,$port,$db,$user,$pwd){

		$dsn = "mysql:dbname=$db;host=$host;port=$port";
		$user = $user;
		$password = $pwd;
		$this->pdo = new PDO($dsn, $user, $password);
		$this->pdo->exec('SET CHARACTER SET utf8');
		$this->pdo->exec('SET NAMES utf8');
	}

	public function get_pdo(){
	    return $this->pdo;
	}

}